/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ban.handler;

/**
 *
 * @author sxl
 */
public class SE2DWWorkerFactory {

    public static SE2DBWorker getSE2DBWroker(HttpSe2DBHandler httpSe2DBHandler, int i) throws Exception {
        SE2DBWorker se2DWWorker = null;
        String dwType = httpSe2DBHandler.getLoadType();
        if ("audit".equals(dwType)) {
            se2DWWorker = new SE2DBWorkerMysqlCommon(httpSe2DBHandler, dwType);
        } else {
            throw new Exception("unknown dw type " + dwType);
        }
        se2DWWorker.init();
        return se2DWWorker;
    }
}
